﻿@model Webs.Models.CooperaterModel
@if (ViewBag.ErrMsg != null)
{
    <div id="dErrMsg" class="ui-state-error ui-corner-all" style="margin-top: 5px; padding: 5px;
        font-size: .9em;">
        <p style="vertical-align: top; margin: 0; padding: 0;">
            <span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
            <strong>@ViewBag.ErrMsg</strong>
        </p>
        <div style="margin-left: 23px;">@Html.ValidationSummary(false, "Please correct the errors and try again:")</div>
    </div>
}
@if (ViewBag.SuccMsg != null)
{
    <div id="dSuccMsg" class="ui-state-highlight ui-corner-all" style="margin-top: 5px;
        padding: 5px; font-size: .9em;">
        <p style="vertical-align: top; margin: 0; padding: 0;">
            <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
            <strong>@ViewBag.SuccMsg</strong>
        </p>
    </div>
}
@Html.HiddenFor(m => m.CooperaterID)
<div class="editor-label">
    @CooperaterRes.CooperaterString.LOOKUPCODE @Html.ValidationMessageFor(m => m.LookupCode)
</div>
<div class="editor-field">
    @Html.TextBoxFor(m => m.LookupCode, new { Class = "editor-field-col" })
</div>
<div class="editor-label">
    @CooperaterRes.CooperaterString.COOPNAME @Html.ValidationMessageFor(m => m.CooperaterName)
</div>
<div class="editor-field">
    @Html.TextBoxFor(m => m.CooperaterName, new { Class = "editor-field-col" })
</div>
<div class="editor-label">
    @CooperaterRes.CooperaterString.DESCRIPTION @Html.ValidationMessageFor(m => m.Description)
</div>
<div class="editor-field">
    @Html.TextAreaFor(m => m.Description, new { Class = "editor-field-col", style = "width:415px; height:130px" })
</div>
<div class="editor-label">
    @CooperaterRes.CooperaterString.PHONE
</div>
<div class="editor-field">
    @Html.TextBoxFor(m => m.Phone, new { Class = "editor-field-col" })
</div>
<div class="editor-label">
    @CooperaterRes.CooperaterString.FAX
</div>
<div class="editor-field">
    @Html.TextBoxFor(m => m.Fax, new { Class = "editor-field-col" })
</div>
<div class="editor-label">
    @CooperaterRes.CooperaterString.EMAIL
</div>
<div class="editor-field">
    @Html.TextBoxFor(m => m.Email, new { Class = "editor-field-col" })
</div>
<div class="editor-field">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td width="140px">
                @Html.CheckBoxFor(m => m.Shipper) @CooperaterRes.CooperaterString.SHIPPER
            </td>
            <td>
                @Html.CheckBoxFor(m => m.Consignee) @CooperaterRes.CooperaterString.CONSIGNEE
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.Notify) @CooperaterRes.CooperaterString.NOTIFYPARTY
            </td>
            <td>
                @Html.CheckBoxFor(m => m.Agent) @CooperaterRes.CooperaterString.DELIVERYAGENT
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.Customer) @CooperaterRes.CooperaterString.CUSTOMER
            </td>
        </tr>
    </table>
</div>
<div class="editor-label">
    <input type="submit" id="btnSubmit" class="btn" value="@SharedRes.SharedString.Save" />
</div>
